<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Use Thymeleaf in Spring Boot Application</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
        }

        .container {
            width: 500px; /* 设置宽度为500像素 */
            text-align: center;
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: absolute;
            top: 25%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        h2 {
            color: #333;
        }

        nav {
            margin-top: 20px;
        }

        a {
            display: block;
            margin-bottom: 10px;
            color: #333;
            text-decoration: none;
        }
    </style>
</head>
<body>
<div class="container">
    <h2>Thymeleaf表达式Demo</h2>
    <h1 th:text="${message}">This is the tag for displaying message returned by the controller</h1>

    <nav>
        <a th:href="@{/thymeleaf/variable}">变量表达式</a>
        <br>
        <a th:href="@{/thymeleaf/Choosevariable}">选择变量表达式</a>
        <br>
        <a th:href="@{/thymeleaf/message}">消息表达式</a>
        <br>
        <a th:href="@{/thymeleaf/urlEL}">链接表达式</a>
        <br>
        <a th:href="@{/thymeleaf/fragment}">片段表达式</a>
        <br>
    </nav>
</div>
</body>
</html>
